package com.bdmc.smokesensor.dao;
 
import java.io.Serializable;
import java.util.List;

import com.bdmc.smokesensor.entity.Smk_Devices;
import com.bdmc.smokesensor.entity.User;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
 
public interface Smk_DevicesJPA extends JpaRepository<Smk_Devices,Integer>,JpaSpecificationExecutor<User>,Serializable {
  
   public Smk_Devices findByImei(String imei);
   public Smk_Devices findByDevId(String devId);
   public Smk_Devices findByImeiAndIdNot(String imei,int id);
   public List<Smk_Devices> findBySmkBuildingId(int smkBuildingId);
}
